from utils.ytx_sdk.sendSMS import CCP
from celery_tasks.main import app

#装饰器
@app.task(name='sms_send')#sms_send任务名
def sms_send(mobile, sms_code, expires, template_id):
    # CCP.sendTemplateSMS(mobile, sms_code, expires, template_id)
    print(sms_code)

# @app.task
# def hello():
#     print('hello')